package com.ssm.xm.service.teacher.impl;

import com.ssm.xm.mapper.ThInfoMapper;
import com.ssm.xm.model.ThInfo;
import com.ssm.xm.service.teacher.ThInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ThInfoServiceImpl implements ThInfoService {
    @Autowired
    private ThInfoMapper thInfoMapper;

    @Override
    public ThInfo queryByTeacher(ThInfo thInfo) {
        return thInfoMapper.queryByTeacher(thInfo);
    }

    @Override
    public ThInfo queryByTeacheId(int thId) {
        return thInfoMapper.selectByPrimaryKey(thId);
    }

    @Override
    public void updateThInfoBythId(ThInfo thInfo) {
        thInfoMapper.updateByPrimaryKeySelective(thInfo);
    }
}
